package com.lemon.core.exception;

import lombok.Getter;

/**
 * @author 李猛
 * @datetime 2024/2/7 1:40
 * @description 类对象
 */
@Getter
public class PermissionException extends RuntimeException {
    private int code = 401;

    public PermissionException(String message) {
        super(message);
    }

    public PermissionException(int code, String message) {
        super(message);
        this.code = code;
    }
}

